package cn.echo.modules.sys.entity;

import java.util.Date;

/**
 * Created by LSF_ on 2017/5/11.
 * 类别
 */
public class SiteCategory {
    public static final String FLAG_NORMAL="0";
    public static final String FLAG_DEL="1";

    public String id;
    public String name;
    public String description;
    public Date createDate;
    public String parentId;
    public Admin createBy;
    public Admin updateBy;
    public Date updateTime;
    public String delFlag;
public SiteCategory(){}
//"sdfs", "xxxx","djfkfskfjf", new Date(),
//    admin,admin,new Date(), SiteCategory.FLAG_NORMAL
    public SiteCategory(String id, String name, String description,
                        Date createDate, String parentId, Admin createBy,
                        Admin updateBy, Date updateTime, String delFlag)
    {
        this.id = id;
        this.name = name;
        this.description = description;
        this.createDate = createDate;
        this.parentId = parentId;
        this.createBy = createBy;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "SiteCategory{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", createDate=" + createDate +
                ", parentId='" + parentId + '\'' +
                ", createBy=" + createBy +
                ", updateBy=" + updateBy +
                ", updateTime=" + updateTime +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }

    public static String getFlagNormal() {
        return FLAG_NORMAL;
    }

    public static String getFlagDel() {
        return FLAG_DEL;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Admin getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Admin createBy) {
        this.createBy = createBy;
    }

    public Admin getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Admin updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }
}
